package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;
import java.math.BigDecimal;

@Data
@TableName("msslyy_book")
public class MsslyyBook extends Model<MsslyyBook> {
    /**
      * 主键
      */
    @ApiModelProperty(value = "ID")
    @TableId(value = "book_id", type = IdType.AUTO)
    private Long id;


    /**
      * 图书标题 
      */
    @ApiModelProperty(value = "图书标题")
    private String bookTitle;

    /**
      * ISBN码 
      */
    @ApiModelProperty(value = "ISBN码")
    private String bookIsbn;

    /**
      * 原价 
      */
    @ApiModelProperty(value = "原价")
    private BigDecimal bookOldPrice;

    /**
      * 现价 
      */
    @ApiModelProperty(value = "现价")
    private BigDecimal bookNewPrice;

    /**
      * 图书图片 
      */
    @ApiModelProperty(value = "图书图片")
    private String bookImages;

    /**
      * 描述 
      */
    @ApiModelProperty(value = "描述")
    private String bookDescribe;

    /**
      * 分类ID 
      */
    @ApiModelProperty(value = "分类ID")
    private Long categoryId;

    /**
      * 出版社ID 
      */
    @ApiModelProperty(value = "出版社ID")
    private Long publisherId;

    /**
      * 上架状态 
      */
    @ApiModelProperty(value = "上架状态")
    private Integer bookState;

    /**
      * 出版日期 
      */
    @ApiModelProperty(value = "出版日期")
    private Date bookPubDate;

    /**
      * 作者 
      */
    @ApiModelProperty(value = "作者")
    private String bookAuthors;

    /**
      * 版别 
      */
    @ApiModelProperty(value = "版别")
    private String bookLanguage;

    /**
      * 入库数量 
      */
    @ApiModelProperty(value = "入库数量")
    private Integer bookQuantityInput;

    /**
      * 出库数量 
      */
    @ApiModelProperty(value = "出库数量")
    private Integer bookQuantityOutput;

    /**
      * 状态 
      */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
      * 逻辑删除 
      */
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleted;

    /**
      * 乐观锁 
      */
    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    /**
      * 创建时间 
      */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;




    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 加入的时间
     */
    @ApiModelProperty(value = "加入的时间")
    @TableField(exist = false)
    private Date addTime;

    /**
     * 加入的商品数量
     */
    @ApiModelProperty(value = "加入的商品数量")
    @TableField(exist = false)
    private Integer cartAmount;

    @ApiModelProperty(value = "分类名称")
    @TableField(exist = false)
    private String categoryName;

    @ApiModelProperty(value = "出版社名称")
    @TableField(exist = false)
    private String publisherName;

}